
#pragma once

#include "sqlite3pp_helper.h"
#include <map>
#include <vector>

class KVStorage {
public:
    KVStorage(/* args */) {}
    ~KVStorage() { close(); }

    void open(std::string path);
    void close(void);
    void kvset(std::string k, std::string v);
    std::string kvget(std::string k);
    void kvdel(std::string k);
    std::unordered_map<std::string, std::string> kv_keys(std::string key);
    void kv_del_keys(std::string k);

private:
    Sqlite3pp m_conn;
};
